package com.cdel.akka.demo2;

import akka.actor.UntypedActor;

public class GreeterActor extends UntypedActor {

	public static enum Msg {
		GREET, DONE;
	}

	@Override
	public void onReceive(Object msg) {
		if (msg == Msg.GREET) {
			System.out.println("Hello World!");
			getSender().tell(Msg.DONE, getSelf());
		} else
			unhandled(msg);
	}

}